package com.scud.system.feign;

import com.scud.client.system.ISystemClient;
import com.scud.system.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author vermouth
 */
@RestController
@Slf4j
public class SystemClient implements ISystemClient {

    @Autowired
    private UserService userService;

    /**
     * 获取所有审核人员的id集合
     * @param :
     * @return List<Long>
     * @author vermouth
     */
    @Override
    public List<Long> getAuditIds(@RequestHeader("token") String token) {
        List<Long> auditIds=userService.getAuditIds();
        return auditIds;
    }
}
